//
//  TTLookProgressViewCell.m
//  TaoTuo
//
//  Created by admin on 2019/12/5.
//  Copyright © 2019 admin. All rights reserved.
//

#import "TTLookProgressViewCell.h"

@interface TTLookProgressViewCell ()
@property (weak, nonatomic) IBOutlet UIView *topLineView;
@property (weak, nonatomic) IBOutlet UIView *bottomLineView;
@property (weak, nonatomic) IBOutlet UIView *middleCircleView;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UILabel *timeLabel;

@end

@implementation TTLookProgressViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
    self.selectionStyle = UITableViewCellSelectionStyleNone;
    self.middleCircleView.layer.cornerRadius = 5;
    
}

- (void)setModel:(TTLookProgressModel *)model
{
    _model = model;
    
    self.titleLabel.text = model.FrontContent;
    self.timeLabel.text = model.CreateTime;
    
    self.topLineView.hidden = model.selected;
    self.bottomLineView.hidden = model.hiddenBottomLine;
    
    if (model.selected) {
        self.middleCircleView.backgroundColor = kMainColor;
    } else {
        self.middleCircleView.backgroundColor = UIColorHex(999999);
    }
    
}


@end
